

CC = gcc
CFLAGS = -Wall -g -pedantic -lpthread
#CFLAGS = -g -lpthread
targets = main

main_objs = queue.h queue.o qfunc.h

.PHONY: all
.DEFAULT: all
all: $(targets)

main: main.o $(main_objs)
	$(CC) $(CFLAGS) $^ -o $@

%.o: %.c 
	$(CC) $(CFLAGS) -c $^ -o $@
 
.PHONY: clean
clean:
	$(RM) $(targets) *.o

